﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using clf.weighing.entity;

namespace weighing
{
    /// <summary>
    ///  自定义备用磅单字段
    /// </summary>

    public class BackupBillFieldVo : BaseVo
    {
        #region Constract
        public BackupBillField mBackupBillField;
        public BackupBillFieldVo(BackupBillField backupBillField)
        {
            mBackupBillField = backupBillField;
        }
        #endregion


        #region propertys
        /// <summary>
        /// 注释:ID
        /// 可空:NO
        /// </summary>

        public Int64 Id
        {
            get
            {
                return mBackupBillField.id;
            }
            set
            {
                mBackupBillField.id = value;
                OnPropertyChanged(this, nameof(Id));
            }
        }

        /// <summary>
        /// 注释:字段名称
        /// 可空:NO
        /// 默认值:‘’
        /// </summary>

        public String FiedName
        {
            get
            {
                return mBackupBillField.fiedName;
            }
            set
            {
                mBackupBillField.fiedName = value;
                OnPropertyChanged(this, nameof(FiedName));
            }
        }

        /// <summary>
        /// 注释:显示名称
        /// 可空:NO
        /// 默认值:‘’
        /// </summary>

        public String DisplayName
        {
            get
            {
                return mBackupBillField.displayName;
            }
            set
            {
                mBackupBillField.displayName = value;
                OnPropertyChanged(this, nameof(DisplayName));
            }
        }

        /// <summary>
        /// 注释:是否启用
        /// 可空:NO
        /// 默认值:0
        /// </summary>

        public Int32 IsEnable
        {
            get
            {
                return mBackupBillField.isEnable;
            }
            set
            {
                mBackupBillField.isEnable = value;
                OnPropertyChanged(this, nameof(IsEnable));
            }
        }

        /// <summary>
        /// 注释:是否显示
        /// 可空:NO
        /// 默认值:0
        /// </summary>

        public Int32 IsShow
        {
            get
            {
                return mBackupBillField.isShow;
            }
            set
            {
                mBackupBillField.isShow = value;
                OnPropertyChanged(this, nameof(IsShow));
            }
        }

        /// <summary>
        /// 注释:排序序号
        /// 可空:NO
        /// 默认值:0
        /// </summary>

        public Int32 Sort
        {
            get
            {
                return mBackupBillField.sort;
            }
            set
            {
                mBackupBillField.sort = value;
                OnPropertyChanged(this, nameof(Sort));
            }
        }

        /// <summary>
        /// 注释:过磅类型
        /// 可空:NO
        /// 默认值:0
        /// </summary>

        public Int32 BillType
        {
            get
            {
                return mBackupBillField.billType;
            }
            set
            {
                mBackupBillField.billType = value;
                OnPropertyChanged(this, nameof(BillType));
            }
        }

        /// <summary>
        /// 注释:左
        /// 可空:NO
        /// 默认值:0.00
        /// </summary>

        public Double Left
        {
            get
            {
                return mBackupBillField.left;
            }
            set
            {
                mBackupBillField.left = value;
                OnPropertyChanged(this, nameof(Left));
            }
        }

        /// <summary>
        /// 注释:顶
        /// 可空:NO
        /// 默认值:0.00
        /// </summary>

        public Double Top
        {
            get
            {
                return mBackupBillField.top;
            }
            set
            {
                mBackupBillField.top = value;
                OnPropertyChanged(this, nameof(Top));
            }
        }
        /// <summary>
        /// 注释:控件的宽度
        /// 可空:NO
        /// 默认值:230
        /// </summary>

        public Int32 Width
        {
            get
            {
                return mBackupBillField.width;
            }
            set
            {
                mBackupBillField.width = value;
                OnPropertyChanged(this, nameof(Width));
            }
        }

        /// <summary>
        /// 注释:是否为搜索条件（0:否,1:是）
        /// 可空:NO
        /// 默认值:0
        /// </summary>

        public Int32 IsSearch
        {
            get
            {
                return mBackupBillField.isSearch;
            }
            set
            {
                mBackupBillField.isSearch = value;
                OnPropertyChanged(this, nameof(IsSearch));
            }
        }

        /// <summary>
        /// 注释:标题宽度
        /// 可空:YES
        /// 默认值:60
        /// </summary>

        public Int32? TitleWidth
        {
            get
            {
                return mBackupBillField.titleWidth;
            }
            set
            {
                mBackupBillField.titleWidth = value;
                OnPropertyChanged(this, nameof(TitleWidth));
            }
        }

        /// <summary>
        /// 注释:控件类型（0:输入框,1:下拉选择框）  
        /// 默认值:0
        /// </summary>
        public Int32 ControlType
        {
            get { return mBackupBillField.controlType; }
            set { mBackupBillField.controlType = value; }
        }
        #endregion

        #region Text

        #endregion

    }
}
